package org.anyin.gitee.cloud.center.upms.enums;

import lombok.Getter;
import org.anyin.gitee.cloud.lib.core.exceptions.CommonException;

@Getter
public enum UpmsExCodeEnum {

    USER_NOT_FOUND("UPMS0001", "用户为找到")
    ;


    private String code;

    private String message;

    UpmsExCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public CommonException getException(){
        return new CommonException(this.code, this.message);
    }
}
